﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="BanHang2DataSet1" targetNamespace="http://tempuri.org/BanHang2DataSet1.xsd" xmlns:mstns="http://tempuri.org/BanHang2DataSet1.xsd" xmlns="http://tempuri.org/BanHang2DataSet1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="BanHang2ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BanHang2ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.AmiangProject.Properties.Settings.GlobalReference.Default.BanHang2ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="LOAIMHTableAdapter" GeneratorDataComponentClassName="LOAIMHTableAdapter" Name="LOAIMH" UserDataComponentName="LOAIMHTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="BanHang2ConnectionString (Settings)" DbObjectName="BanHang2.dbo.LOAIMH" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[LOAIMH] WHERE (([MaLMH] = @Original_MaLMH) AND ((@IsNull_TenLMH = 1 AND [TenLMH] IS NULL) OR ([TenLMH] = @Original_TenLMH)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MaLMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaLMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenLMH" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenLMH" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenLMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenLMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[LOAIMH] ([MaLMH], [TenLMH]) VALUES (@MaLMH, @TenLMH);
SELECT MaLMH, TenLMH FROM LOAIMH WHERE (MaLMH = @MaLMH)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaLMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaLMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenLMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenLMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MaLMH, TenLMH FROM dbo.LOAIMH</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[LOAIMH] SET [MaLMH] = @MaLMH, [TenLMH] = @TenLMH WHERE (([MaLMH] = @Original_MaLMH) AND ((@IsNull_TenLMH = 1 AND [TenLMH] IS NULL) OR ([TenLMH] = @Original_TenLMH)));
SELECT MaLMH, TenLMH FROM LOAIMH WHERE (MaLMH = @MaLMH)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaLMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaLMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenLMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenLMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MaLMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaLMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenLMH" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenLMH" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenLMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenLMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaLMH" DataSetColumn="MaLMH" />
              <Mapping SourceColumn="TenLMH" DataSetColumn="TenLMH" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="BanHang2DataSet1" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="BanHang2DataSet1" msprop:Generator_UserDSName="BanHang2DataSet1">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="LOAIMH" msprop:Generator_TableClassName="LOAIMHDataTable" msprop:Generator_TableVarName="tableLOAIMH" msprop:Generator_TablePropName="LOAIMH" msprop:Generator_RowDeletingName="LOAIMHRowDeleting" msprop:Generator_RowChangingName="LOAIMHRowChanging" msprop:Generator_RowEvHandlerName="LOAIMHRowChangeEventHandler" msprop:Generator_RowDeletedName="LOAIMHRowDeleted" msprop:Generator_UserTableName="LOAIMH" msprop:Generator_RowChangedName="LOAIMHRowChanged" msprop:Generator_RowEvArgName="LOAIMHRowChangeEvent" msprop:Generator_RowClassName="LOAIMHRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaLMH" msprop:Generator_ColumnVarNameInTable="columnMaLMH" msprop:Generator_ColumnPropNameInRow="MaLMH" msprop:Generator_ColumnPropNameInTable="MaLMHColumn" msprop:Generator_UserColumnName="MaLMH">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="3" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenLMH" msprop:Generator_ColumnVarNameInTable="columnTenLMH" msprop:Generator_ColumnPropNameInRow="TenLMH" msprop:Generator_ColumnPropNameInTable="TenLMHColumn" msprop:Generator_UserColumnName="TenLMH" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:LOAIMH" />
      <xs:field xpath="mstns:MaLMH" />
    </xs:unique>
  </xs:element>
</xs:schema>